package com.lhy.framework.beans.factory.factory;

import com.lhy.framework.beans.factory.HierarchicalBeanFactory;
import com.lhy.framework.utils.StringValueResolver;

/**
 * @Title:
 * @Description: 功能概述:
 * @Author: lihaiyang
 * @version: 1.0 .
 * @Date: 2022-09-09 14:39
 * @Copyright: Copyright(c)2022 RedaFlight.comAll Rights Reserved
 */
public interface ConfigurableBeanFactory extends HierarchicalBeanFactory, SingletonBeanRegistry {
    String SCOPE_SINGLETON = "singleton";

    String SCOPE_PROTOTYPE = "prototype";

    void addBeanPostProcessor(BeanPostProcessor beanPostProcessor);

    /**
     * 销毁单例方法
     */
    void destroySingletons();

    void addEmbeddedValueResolver(StringValueResolver valueResolver);

    String resolveEmbeddedValue(String value);
}
